package com.etpjava.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="tb_trem")
public class trainempl {


	private Employee employeeid;
	private Train trainid;
	@ManyToOne
	@JoinColumn(name="emplid")
	public Employee getEmployeeid() {
		return employeeid;
	}

	@ManyToOne
	@JoinColumn(name="trainid")
	public Train getTrainid() {
		return trainid;
	}

	public void setEmployeeid(Employee employeeid) {
		this.employeeid = employeeid;
	}


	public void setTrainid(Train trainid) {
		this.trainid = trainid;
	}
}
